<!--新增弹窗 开始-->
<div class="modal fade" aria-labelledby="myModalLabel" aria-hidden="true" id="settingProduct" *ngIf="initService.init&&details">
    <div class="modal-dialog modal-lg modal-dialog-centered" style="max-width: 1000px;">
        <div class="modal-content">
            <input type="hidden" name="projectId" #projectId="ngModel" [ngModel]="details.projectId">
            <!-- 模态框头部 -->
            <div class="modal-header">
                <h4 class="modal-title">查看内容 - {{ details.projectName }}</h4>
                <button type="button" class="close" data-dismiss="modal">&times;</button>
            </div>

            <!-- 模态框主体  -->
            <div class="modal-body" style="height:500px;">

                <div class="container">
                    <div class="row txtTitle">
                        <input matInput type="text" class="input_style" #queryCriteria="ngModel" name="searchData" (keydown.enter)="_retrieval(searchData)"
                        placeholder="请输入产品名称检索" [(ngModel)]="searchData" />
                        <button class="btn btn-search btn-blue" style="margin-right: 10px;" (click)="_retrieval(searchData)" mat-button>查询</button>
                        <!-- <button class="btn btn-blue" data-toggle="modal" data-target="#settingProductAdd" (click)="settingAdd.getSettingProduct(details.projectId)">选择内容</button> -->
                    </div>
                    <div class="table-thead">
                        <table class="tableStyle table table-hover table-striped">
                            <thead>
                                <tr>
                                    <th class="w5 text-center max-w">序号</th>
                                    <th class="w30 text-left max-w">内容名称</th>
                                    <th class="w10 text-left max-w">内容类型</th>
                                    <th class="w5 text-left max-w">状态</th>
                                    <th class="w5 text-left max-w">类型</th>
                                    <!-- <th class="w10 text-left">操作</th> -->
                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="table-tbody" style="border: 1px solid rgba(0,0,0,0.1);height:340px;">
                        <table class="tableStyle table table-hover table-striped">
                            <tbody>
                                <tr *ngFor="let val of tabDetailVal;let i = index">
                                    <td class="w5 text-center">{{ i+1 }}</td>
                                    <td class="w30 text-left max-w" [title]="val.name">{{ val.name }}</td>
                                    <td class="w10 text-left max-w">
                                        <span *ngIf="val.productType === 0">产品</span>
                                        <span *ngIf="val.productType === 1">内文</span>
                                    </td>
                                    <td class="w5 text-left max-w">
                                        <span class="stateGreen" *ngIf="val.indexingStatus === 0">启用</span>
                                        <span class="stateRed" *ngIf="val.indexingStatus === -1">禁用</span>
                                    </td>
                                    <td class="w5 text-left max-w">{{ val.fileFormat }} </td>
                                    <!-- <td class="w10 text-left">
                                        <span class="tableOperationText" data-toggle="modal" data-target="#deleteSettingProduct" (click)="settingAdd._deleteSP(val.productId)">删除</span>
                                    </td> -->
                                </tr>
                            </tbody>
                        </table>
                    </div>
                   
                </div>
                <!-- 分页 BEGIN -->
                <app-pagination [showLeft]="true" [getTotalItems]="total" (isLoadTableFromPagination)="_pagination($event)">
                </app-pagination>
                <!-- 分页 END -->
            </div>
            
            <!-- 模态框底部 -->
            <div class="modal-footer" style="width:100%;">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
            </div>
        </div>
    </div>
</div>
<!--新增弹窗 结束-->

<!--新增设置产品弹窗 BEGIN-->
<app-project-setting-add #settingAdd (onSubmit)="_getHasProjectProductList()"></app-project-setting-add>
<!--新增设置产品弹窗 END-->

<!-- 删除提示 -->
<div class="modal fade bd-example-modal-sm" tabindex="-1" role="dialog" data-keyboard="false" data-backdrop="static"
  aria-labelledby="myModalLabel" aria-hidden="true" id="deleteSettingProduct">
  <div class="modal-dialog delete-modal modal-dialog-centered">
    <div class="modal-content">
      <div class="modal-header">
        <h4 class="modal-title text-center">删除提示</h4>
      </div>
      <div class="modal-body text-center">
        <p class="delete-prompt">请确认是否删除！</p>
      </div>
      <div class="modal-footer" style="width: 100%;">
        <button type="button" class="btn btn-default" data-dismiss="modal" (click)="settingAdd.clearData()">关闭</button>
        <button type="button" class="btn btn-primary" data-dismiss="modal" (click)="settingAdd._deleteSettingProduct()">确认</button>
      </div>
    </div>
  </div>
</div>
<!-- 删除提示 -->